package com.Test;

import com.GZX.idCard;
import sun.nio.cs.ext.ISCII91;

import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        boolean isFlag = true;
        do {
            System.out.println("1.办理校园卡");
            System.out.println("2.校园卡充值");
            System.out.println("3.校园卡挂失");
            System.out.println("4.校园卡取消挂失");
            System.out.println("5.校园卡补卡");
            System.out.println("6.消费模拟");
            System.out.println("7.退出校园卡管理");
            int i = scanner.nextInt();
            switch (i){
                case 1:
                    idCard.addCard();
                    break;
                case 2:
                    idCard.recharge();
                    break;
                case 3:
                    idCard.reportLoss();
                    break;
                case 4:
                    idCard.cancelLoss();
                    break;
                case 5:
                    idCard.replace();
                    break;
                case 6:
                    idCard.consume();
                    break;
                case 7:
                    isFlag = false;
                    break;
            }
        }while (isFlag);
    }
}
